/*
 * #%L
 * SwiftUICommonUtilities
 * $Id:$
 * $HeadURL:$
 * %%
 * Copyright (C) 2011 - 2012 Linkwithweb
 * %%
 * This program is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as
 * published by the Free Software Foundation, either version 3 of the 
 * License, or (at your option) any later version.
 * 
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 * 
 * You should have received a copy of the GNU General Public 
 * License along with this program.  If not, see
 * <http://www.gnu.org/licenses/gpl-3.0.html>.
 * #L%
 */
/**
 * 
 */
package com.linkwithweb.products.swiftui.context;

import java.io.Serializable;
import java.util.Enumeration;
import java.util.Locale;

import com.linkwithweb.products.swiftui.dataobject.FrameworkUser;

/**
 * @author ashwin kumar
 * 
 */
public class UserContext implements Serializable {
	private static final long serialVersionUID = 234342432342L;
	private String userId = "";
	private String userName = "";
	private String identifier = "";
	private String schemaName = "";
	private String password = "";
	private String role = "";
	Locale userPreferredLocale = null;
	Enumeration userPreferredLocales = null;
	FrameworkUser frameworkUser;

	/**
	 * @return the userPreferredLocale
	 */
	public Locale getUserPreferredLocale() {
		return userPreferredLocale;
	}

	/**
	 * @param userPreferredLocale
	 *            the userPreferredLocale to set
	 */
	public void setUserPreferredLocale(Locale userPreferredLocale) {
		this.userPreferredLocale = userPreferredLocale;
	}

	/**
	 * @return the userPreferredLocales
	 */
	public Enumeration getUserPreferredLocales() {
		/**
		 * while (userPreferredLocales.hasMoreElements()) {
		 * userPreferredLocale = (Locale) userPreferredLocales.nextElement();
		 * }
		 */

		return userPreferredLocales;
	}

	/**
	 * @param userPreferredLocales
	 *            the userPreferredLocales to set
	 */
	public void setUserPreferredLocales(Enumeration userPreferredLocales) {
		this.userPreferredLocales = userPreferredLocales;
	};

	/**
	 * @return the userId
	 */
	public String getUserId() {
		return userId;
	}

	/**
	 * @param userId
	 *            the userId to set
	 */
	public void setUserId(String userId) {
		this.userId = userId;
	}

	/**
	 * @return the userName
	 */
	public String getUserName() {
		return userName;
	}

	/**
	 * @param userName
	 *            the userName to set
	 */
	public void setUserName(String userName) {
		this.userName = userName;
	}

	/**
	 * @return the identifier
	 */
	public String getIdentifier() {
		return identifier;
	}

	/**
	 * @param identifier
	 *            the identifier to set
	 */
	public void setIdentifier(String identifier) {
		this.identifier = identifier;
	}

	/**
	 * @return the role
	 */
	public String getRole() {
		return role;
	}

	/**
	 * @param role
	 *            the role to set
	 */
	public void setRole(String role) {
		this.role = role;
	}

	/**
	 * @return the schemaName
	 */
	public String getSchemaName() {
		return schemaName;
	}

	/**
	 * @param schemaName
	 *            the schemaName to set
	 */
	public void setSchemaName(String schemaName) {
		this.schemaName = schemaName;
	}

	/**
	 * @return the password
	 */
	public String getPassword() {
		return password;
	}

	/**
	 * @param password
	 *            the password to set
	 */
	public void setPassword(String password) {
		this.password = password;
	}

	/**
	 * @return the frameworkUser
	 */
	public FrameworkUser getFrameworkUser() {
		return frameworkUser;
	}

	/**
	 * @param frameworkUser the frameworkUser to set
	 */
	public void setFrameworkUser(FrameworkUser frameworkUser) {
		this.frameworkUser = frameworkUser;
	}

	
}
